/**
 * 基础资料路由
 */
export default [
  {
    path: '/basedata',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'units',
        name: 'BasedataUnits',
        component: () => import('@/views/basedata/Units.vue'),
        meta: { title: '计量单位' }
      },
      {
        path: 'currencies',
        name: 'BasedataCurrencies',
        component: () => import('@/views/basedata/Currencies.vue'),
        meta: { title: '货币管理' }
      },
      {
        path: 'regions',
        name: 'BasedataRegions',
        component: () => import('@/views/basedata/Regions.vue'),
        meta: { title: '地区管理' }
      },
      {
        path: 'payment-methods',
        name: 'BasedataPaymentMethods',
        component: () => import('@/views/basedata/PaymentMethods.vue'),
        meta: { title: '结算方式' }
      },
      {
        path: 'tax-rates',
        name: 'BasedataTaxRates',
        component: () => import('@/views/basedata/TaxRates.vue'),
        meta: { title: '税率管理' }
      },
      {
        path: 'brands',
        name: 'BasedataBrands',
        component: () => import('@/views/basedata/Brands.vue'),
        meta: { title: '品牌管理' }
      },
      {
        path: 'price-levels',
        name: 'BasedataPriceLevels',
        component: () => import('@/views/basedata/PriceLevels.vue'),
        meta: { title: '价格级别' }
      },
      {
        path: 'invoice-types',
        name: 'BasedataInvoiceTypes',
        component: () => import('@/views/basedata/InvoiceTypes.vue'),
        meta: { title: '发票类型' }
      },
      {
        path: 'positions',
        name: 'BasedataPositions',
        component: () => import('@/views/basedata/Positions.vue'),
        meta: { title: '职位管理' }
      },
      {
        path: 'expense-types',
        name: 'BasedataExpenseTypes',
        component: () => import('@/views/basedata/ExpenseTypes.vue'),
        meta: { title: '费用类型' }
      },
      {
        path: 'materials',
        name: 'BasedataMaterials',
        component: () => import('@/views/basedata/Materials.vue'),
        meta: { title: '物料管理' }
      },
      {
        path: 'bom',
        name: 'BasedataBOM',
        component: () => import('@/views/basedata/BOM.vue'),
        meta: { title: 'BOM管理' }
      },
      {
        path: 'prices',
        name: 'BasedataPrices',
        component: () => import('@/views/basedata/Prices.vue'),
        meta: { title: '价格管理' }
      },
      {
        path: 'supplier-prices',
        name: 'BasedataSupplierPrices',
        component: () => import('@/views/basedata/SupplierPrices.vue'),
        meta: { title: '供应商价格' }
      }
    ]
  }
]

